﻿CREATE TABLE [dbo].[OrderAuditInfo] (
    [OrderID]     VARCHAR (32)   NOT NULL,
    [AuditStatus] TINYINT        NOT NULL,
    [FailReason]  NVARCHAR (200) NULL,
    CONSTRAINT [FK_OrderAuditInfo_OrderID] FOREIGN KEY ([OrderID]) REFERENCES [dbo].[OrderBaseInfo] ([OrderID])
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'审核状态 0：待审核1；1：待审核2；3：审核失败', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderAuditInfo', @level2type = N'COLUMN', @level2name = N'AuditStatus';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'订单标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderAuditInfo', @level2type = N'COLUMN', @level2name = N'OrderID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'订单审核信息', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'OrderAuditInfo';

